package com.jwp.parser;

import org.htmlparser.Parser;
import org.htmlparser.filters.HasAttributeFilter;
import org.htmlparser.util.NodeList;
import org.htmlparser.util.ParserException;

import com.jwp.common.IParam;
import com.jwp.constants.ConstantUrl;
import com.jwp.thread.ThreadPoolService;

/**
 * @author Jeson
 * @blog: http://www.ij2ee.com/
 * @date:2011-2-19 上午09:26:13
 * @version :
 *
 */
public class ParseAction implements IParam{
		
	public void parseIndex1() throws Exception{
		//ThreadPoolConfig
		for(int i=0;i<10;i++){
			String u = URL_PAGE+i;
			Thread t = new Thread(new ParseTask(u));
			t.start();
		}
		Thread.sleep(10000L);
		//p.get
	}
	
	public static void main(String[] args) throws Exception {
		ParseAction pa = new ParseAction();
		pa.parseIndex1();
	}
}
